/**
 * 
 */
package com.itinsys.enma.dao;

import java.util.List;
import java.util.Map;

import com.itinsys.enma.domain.Environment;
import com.itinsys.enma.domain.Reservation;
import com.itinsys.enma.domain.Resource;
import com.itinsys.enma.domain.Shift;

/**
 * @author pferraz
 *
 */
public interface EnvironmentDAO {

	public List<Environment> getAllActiveEnvironment();

	Environment getById(long id,boolean active);
	
	public Environment getById(long id);

	public Environment getByDesc(String desc, boolean active);

	public List<Environment> getEnvironmentByFilterInObject(Map<String, Object> conditions) throws NumberFormatException;

	public boolean addEnvironment(Environment environment);

	public boolean envBelongToSchoolAndTurn(String schoolId, Shift shift,int environmentId);

	public boolean editEnvironment(Environment environment);

	public List<Reservation> getReservationByEnvironment(int id);

	public boolean deleteEnvironment(Environment env);

	public List<Environment> getAllEnvironment();

	public Environment getByDescAndBuildingId(String description, int buildingId, boolean active);

	public List<Resource> getResourcesByEnvironment(int environmentId);

}
